<?php 
//演示如何创建cookie信息
//把用户名和密码保存到客户端的cookie

setcookie("testcookie","def", time()+30);
setcookie("name","gh", time()+600);

echo "保存成功1";
?>